/**
 * All rights reserved by www.xandroid.cn
 */
package xfok.net.xandroid.examples;


import xfok.net.xandroid.R;
import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebChromeClient;
import android.webkit.WebSettings;
import android.webkit.WebViewClient;

/**
 * @author YangHua
 *  转载请注明出处：http://www.xfok.net/android/2001005/10.html
 * 2010-05-20 www.xandroid.cn 
 */
public class WebView2 extends Activity {
	
	@Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);     
        setContentView(R.layout.web_view);          
        android.webkit.WebView wv;	        
        wv = (android.webkit.WebView) findViewById(R.id.web_view);
        WebSettings webSettings = wv.getSettings();
		webSettings.setJavaScriptEnabled(true);
        String url="http://www.xfok.net/android";
        wv.setWebViewClient( new WebViewClient());
		wv.setWebChromeClient( new WebChromeClient());
        wv.loadUrl(url);         
    }
	
}
